{template "mheader.html"}

<div class="portlet light ">
    <div class="portlet-title">
        <div class="caption fc-mall-order-title">
           商品售后
        </div>
    </div>
    <div class="portlet-body">

        <p>订单编号：<a href="{dr_member_url('order/home/show', ['id'=>$order.id])}">{$order.sn}</a>&nbsp; &nbsp; 下单时间：{dr_date($order.inputtime)}</p>
        <table class="table fc-head-table margin-top-20 table-bordered table-striped table-bordered">
            <thead>
            <tr>
                <th width="100" class=" text-center"></th>
                <th>{dr_lang('商品')}</th>
                <th width="110" class=" text-center">{dr_lang('单价')}</th>
                <th width="80" class=" text-center">{dr_lang('数量')}</th>
                <th width="110" class=" text-center">{dr_lang('总价')}</th>
                <th width="150" class=" text-center">{dr_lang('操作')}</th>
            </tr>
            </thead>
            <tbody>
            {loop $goods $i $t}
            {php $sku_name=dr_string2array($t.sku_name);}
            <tr>
                <td class="text-center">
                    <a href="{$t.url}" title="{$t.title}" target="_blank"><img width="90" src="{dr_get_file($t.thumb)}"></a>
                </td>
                <td class="cart_description">
                    <p style="margin-bottom: 10px"> <a href="{$t.url}" title="{$t.title}" target="_blank">{dr_strcut($t.title, 150)}</a></p>
                    {loop $sku_name $i $c}
                    <small>{$i}: {$c} </small>
                    {/loop}
                    <p style="margin-bottom:0px;{if $sku_name}margin-top: 10px;{/if} color: #ccc">{dr_lang('货号')}：{$t.sn}</p>
                </td>
                <td class="price pprice" style="text-align: center">
                    {if $t.yuan}
                    <p>￥<span class="regular-price">{number_format($t.price, 2)}</span>元</p>
                    <p class="pyuan">￥<span>{number_format($t.yuan, 2)}</span>元</p>
                    {else}
                    ￥<span class="regular-price">{number_format($t.price, 2)}</span>元
                    {/if}
                </td>
                <td class="qty" style="text-align:center">
                    {$t.num}
                </td>
                <td style="text-align:center">
                    <label class="price">￥<span>{number_format($t.total, 2)}</span>元</label>
                </td>
                <td style="text-align:center">
                    {if $t.service}
                    <a href="{dr_member_url('order/service/show', ['id'=>$t['service']['id']])}">{dr_clearhtml(order_service_status($t['service']['status']))}</a>
                    {else}
                    <p style="margin: 7px 0 7px 0"><a href="{dr_member_url('order/service/add', ['id'=>$t.id,'oid'=>$t.oid, 'type' => 1])}">仅退款</a></p>
                    <p style="margin: 0 0 7px 0"><a href="{dr_member_url('order/service/add', ['id'=>$t.id,'oid'=>$t.oid, 'type' => 2])}">退货退款</a></p>
                    <p style="margin: 0 0 7px 0"><a href="{dr_member_url('order/service/add', ['id'=>$t.id,'oid'=>$t.oid, 'type' => 3])}">换货</a></p>
                    {/if}
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>

    </div>
</div>


{template "mfooter.html"}